package com.wjw.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wjw.dao.ProductPictureMapper;
import com.wjw.entity.ProductPicture;
/**
*@author WuJianWei
*@date 2022/2/28 20:00
*/
@Service
public class ProductPictureService extends ServiceImpl<ProductPictureMapper, ProductPicture> {
    public List<ProductPicture> getDetailsPicture(int productId){
        LambdaQueryWrapper<ProductPicture> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(ProductPicture::getProductId,productId);
        List<ProductPicture> productPictures = baseMapper.selectList(wrapper);
        return productPictures;
    }
}
